package com.jic.purchase.mapper;

import com.jic.purchase.model.entity.ContractCost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContractCostMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ContractCost record);

    int insertSelective(ContractCost record);

    ContractCost selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ContractCost record);

    int updateByPrimaryKey(ContractCost record);

    void deleteByContractId(@Param("contractId") Long id);

    void insertBatch(@Param("contractCostList") List<ContractCost> contractCostList,@Param("contractId") Long id);

    List<ContractCost> queryListByContractId(@Param("contractId") Long id);
}